package com.rabbitmq.demo.autoack;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;

@Slf4j
public class Receiver {

    @RabbitListener(queues="queue")
    public void reveive(String in){
        log.info("receive is :{}",in);
        int num = 10/0;

    }
}
